<?php
/**
 * Date：2020-12-10 19:44
 * Title: 对数组元素进行随机排序
 * Description：
 * Error:
 */

$numbers = array('经济', 'a', 'b', '123', 'asd');
echo "原数组顺序为：经济, a, b, 123, asd";
echo "<br>";

srand((float)microtime() * 10000000);
shuffle($numbers);
echo "<br>经随机排序后：";
foreach ($numbers as $value) {
    echo $value."、";
}



